﻿using System;
using System.Windows.Forms;

namespace idataplatform
{
    public partial class ckinfo : Form
    {
        public ckinfo()
        {
            InitializeComponent();
        }

        private void ckinfo_Load(object sender, EventArgs e)
        {
            conncls conns = new conncls();
            string selSQL = "select ckdate,ckweek,klno,clno,nmno,mwno from ckdata_ipark order by ckdate desc;";
            dataGridView1.DataSource = conns.Dts(selSQL);
        }

        private void 条件查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            cksel form2 = new cksel();
            form2.ShowDialog();
            if (form2.DialogResult == DialogResult.OK)
            {
                if (pubcls.ckselSQL != "")
                {
                    conncls conns = new conncls();
                    dataGridView1.DataSource = conns.Dts(pubcls.ckselSQL);
                }
            }
        }

        private void 数据导出ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ExportExcel Et = new ExportExcel();
            Et.GridToExcel("招商蛇口佛山IPARK花园城车客流数据", dataGridView1);
        }
    }
}
